package org.example.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.account.model.entity.AccountDO;

import java.math.BigDecimal;

/**
 * @author shenguangyang
 */
@Mapper
public interface AccountMapper extends BaseMapper<AccountDO> {
    void decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}
